package com.mf.entity;

import com.mf.Enum.UserTransferAccountsType;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户转账记录表
 * </p>
 *
 * @author mf
 * @since 2024-05-19
 */
@Getter
@Setter
@TableName("t_user_transfer_accounts")
public class UserTransferAccounts {

@TableId(value = "id", type = IdType.AUTO)
private Integer id;

/**
 * 用户id
 */
@Schema(description = "用户id")
private Integer userId;

/**
 * 交易金额
 */
@Schema(description = "交易金额")
private BigDecimal amount;

/**
 * 交易类型 in:转入,out:转出
 */
@Schema(description = "交易类型 in:转入,out:转出")
private UserTransferAccountsType type;

private LocalDateTime createdTime;

private LocalDateTime updateTime;
        }